///
/// ArmyBodger 3
/// (c)2010 richyp
///
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArmyBodger.Core {
    /// <summary>
    /// Represents a peice of equipment/wargear
    /// </summary>
    public class Equipment {
        /// <summary>
        /// Default Constructor
        /// </summary>
        public Equipment() {
            this.Bonuses = new BonusCollection();
        }
        /// <summary>
        /// Construcor
        /// </summary>
        /// <param name="name">Name of the equipment</param>
        /// <param name="description">Description of the equipment</param>
        /// <param name="category">Category the equipment belongs to</param>
        public Equipment(string name, string description, string category)
            : this() {
            this.Name = name;
            this.Description = description;
            this.Category = category;
        }
        /// <summary>
        /// Name of the equipment
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// Description of the equipment
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// Category of the equipment
        /// </summary>
        public string Category { get; set; }
        /// <summary>
        /// The Bonuses this equipment provides
        /// </summary>
        public BonusCollection Bonuses { get; set; }

        public override string ToString()
        {
            return Name;
        }
    }
}
